//
//  Tree.hpp
//  Node
//
//  Created by zhangjikuan on 2020/12/14.
//  Copyright © 2020 hsgd. All rights reserved.
//

#ifndef Tree_hpp
#define Tree_hpp

#include <stdio.h>

/// 树机构体
struct TreeNode {
    int val;
    TreeNode *left;
    TreeNode *right;
    TreeNode(int x) : val(x), left(NULL), right(NULL) {}
    
};
class TreeNodeAlgorithm {
public:
    bool check(TreeNode *p, TreeNode *q);
    bool isSymmetric(TreeNode* root);
};

#endif /* Tree_hpp */
